#include "ISNW_Panel.h"
using namespace ISNW;

ISNW_Panel::ISNW_Panel()
{
	Init();
}

ISNW_VOID ISNW_Panel::Init()
{
	m_alpha = 0xFF;
}

ISNW_VOID ISNW_Panel::SetImgSrc(ISNW_StringBaby sb)
{
	m_texture.SetFormat(ISNW_Texture::ISNW_TEXTURE_CREATE_FILE);
	m_texture.SetFileSrc(sb);
}

ISNW_VOID ISNW_Panel::Create()
{
	m_texture.Create();
}

ISNW_VOID ISNW_Panel::SetSize(ISNW_INT w,ISNW_INT h)
{
	m_texture.SetWidth(w);
	m_texture.SetHeight(h);
}

ISNW_VOID ISNW_Panel::SetPos(ISNW_INT x,ISNW_INT y)
{
	m_texture.SetPos(D3DXVECTOR3(x,y,0));
}

ISNW_VOID ISNW_Panel::Render()
{
	m_texture.Render();
}